export default ({ app, store, route, error }) => {
	app.router.beforeEach((to, from, next) => {
		// console.log('to==> ', to)
		// console.log('from==> ', from)
		let local = app.$cookies.get("auth.strategy");
		let token = app.$cookies.get(`auth._token.${local}`);
		let whiteLst = ["index"];
		if (token || whiteLst.includes(to.name)) {
			return next();
		}
		// store.commit("set_show_login", true);
		next();
	});

	app.router.afterEach((to, from) => { });
};
